<!--{if $home_run}-->
<!-- Right -->
<!-- Khi nguoi dung da dang nhap -->
<!--{if $_G[uid] }-->
    <!--{if $_G['setting']['taskon'] && !empty($task) && is_array($task)}-->
    <!-- Nhiem vu cho thanh vien -->
    <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
        <div class="blocktitle title">
            <span>{lang task}</span>
            <span class="y xw0"><a href="home.php?mod=task">{lang all}</a></span>
        </div>
        <div class="bm_c dxb_bc">
            <p class="pbm">{lang space_home_message}</p>
            <hr class="da m0" />
            <dl class="xld cl">
                <dd class="m"><img src="$task[icon]" width="64" height="64" alt="Icon" /></dd>
                <dt><a href="home.php?mod=task&do=view&id=$task[taskid]">$task[name]</a></dt>
                <dd>
                    <p>$task[description]</p>
                    <!--{if in_array($task['reward'], array('credit', 'magic', 'medal', 'invite', 'group'))}-->
                        <p>
                            <!--{if $task['reward'] == 'credit'}-->
                                {lang gettable} <strong class="xi1">$task[bonus]</strong> $_G['setting']['extcredits'][$task[prize]][title] $_G['setting']['extcredits'][$task[prize]][unit]
                            <!--{elseif $task['reward'] == 'magic'}-->
                                {lang gettable} {lang magics_title} $listdata[$task[prize]] <strong class="xi1">$task[bonus]</strong> {lang magics_unit}
                            <!--{elseif $task['reward'] == 'medal'}-->
                                {lang gettable} {lang medals} <strong class="xi1">1</strong> {lang unit}
                            <!--{elseif $task['reward'] == 'invite'}-->
                                {lang gettable} {lang invite_code} <strong class="xi1">$task[prize]</strong> {lang unit}
                            <!--{elseif $task['reward'] == 'group'}-->
                                {lang step_up} {lang usergroup}{lang level}
                            <!--{/if}-->
                        </p>
                    <!--{/if}-->
                </dd>
            </dl>
        </div>
    </div>
    <!--{/if}-->
    <!-- /Nhiem vu cho thanh vien -->
    <!-- Cac the tien ich -->
    <!--{if !empty($magic) && is_array($magic) && 0 == 1}-->
    <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
        <div class="blocktitle title">
            <span>{lang magic}</span>
            <span class="y xw0"><a href="home.php?mod=magic">{lang all}</a></span>
        </div>
        <div class="bm_c dxb_bc">
            <dl class="xld cl">
                <dd class="m"><img src="{STATICURL}/image/magic/$magic[pic]" alt="$magic[name]" title="$magic[description]" /></dd>
                <dt>$magic[name]</dt>
                <dd>
                    <p>$magic[description]</p>
                    <p>{lang magics_price}
                        <!--{if {$_G['setting']['extcredits'][$magic[credit]][unit]}}-->
                            {$_G['setting']['extcredits'][$magic[credit]][title]} <strong class="xi1">$magic[price]</strong> {$_G['setting']['extcredits'][$magic[credit]][unit]}/{lang magics_unit}
                        <!--{else}-->
                            <strong class="xi1">$magic[price]</strong> {$_G['setting']['extcredits'][$magic[credit]][title]}/{lang magics_unit}
                        <!--{/if}-->
                    </p>
                    <p>
                        <!--{if $magic[num] > 0}-->
                            <a href="home.php?mod=magic&action=shop&operation=buy&mid=$magic[identifier]" onclick="showWindow('magics', this.href);return false;" class="xi2 xw1">{lang magics_operation_buy}</a>
                            <!--{if $_G['group']['allowmagics'] > 1}-->
                                <span class="pipe">|</span>
                                <a href="home.php?mod=magic&action=shop&operation=give&mid=$magic[identifier]" onclick="showWindow('magics', this.href);return false;" class="xi2">{lang magics_operation_present}</a>
                            <!--{/if}-->
                        <!--{else}-->
                            <span class="xg1">{lang magic_empty}</span>
                        <!--{/if}-->
                    </p>
                </dd>
            </dl>
        </div>
    </div>
    <!--{/if}-->
    <!-- Add friends begin -->
    <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
        <div class="blocktitle title">
            <span>Tìm lại bạn bè cũ</span>
        </div>
        <div class="bm_l dxb_bc">
            <p align="justify">&nbsp;&nbsp;&nbsp;<b>$_G['username']</b> thân mến, bạn đã tìm thấy tất cả người quen cũ của mình chưa? Hãy nhập danh bạ đang có sẵn của bạn từ gmail hoặc yahoo để tìm họ nhé! Số lượng kết bạn từ chương trình này là không giới hạn!</p>
            <p align="center" style="padding:15px;">
            <a onClick="openpopup('gmail'); return false" href="javascript:void(0);"><img alt="Thêm từ sổ địa chỉ Google" src="static/OI/images/Gmailx38.png" title="Nhập sổ địa chỉ từ danh bạ google của bạn vào woo.vn"></a><br />
        	<a onClick="openpopup('yahoo'); return false" href="javascript:void(0);"><img alt="Thêm từ sổ địa chỉ Yahoo" src="{STATICURL}/OI/images/Yahoox38.png" title="Nhập sổ địa chỉ từ danh bạ yahoo của bạn vào woo.vn"></a>
        </p>
        <!--{if !empty($friend_used_finder)}-->
        <p>Những người bạn đã dùng chương trình tìm kiếm này:<br />
        	<!--{loop $friend_used_finder $key $value}-->
			<a href="home.php?mod=space&uid={$value}" c="1"><!--{avatar($value,small)}--></a>
				<!--{if $key >= 10}-->
                <!--{eval break;}-->
                <!--{/if}-->
			<!--{/loop}-->
        </p>
        <!--{/if}-->
        </div>
    </div>
    <!-- /Add friends End -->
    <!-- /Cac the tien ich -->
    <!-- Danh sach ban be sinh nhat -->
    <!--{if $birthlist}-->
    <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
        <div class="blocktitle title">
            <span>{lang friends_birthday_reminder}</span>
        </div>
        <div class="bm_l dxb_bc">
            <ul class="inlinelist">
                <!--{loop $birthlist $key $values}-->        
                <!--{eval $values = $values[0];}-->
                <li>
                    <a href="home.php?mod=space&uid=$values[uid]" title="{if $ols[$values[uid]]}{lang online}{/if}" class="avt_l" c="1">
                        <!--{if $ols[$values[uid]]}--><em class="gol"></em><!--{/if}-->
                        <!--{avatar($values[uid],small)}-->
                    </a>
                    <strong><a href="home.php?mod=space&uid=$values[uid]">$values[username]</a></strong>
                    <br /><br />
                    <span><!--{if $values['istoday']}-->{lang today}<!--{else}-->{$values[birthday]}/{$values[birthmonth]}<!--{/if}--></span>
                    <div class="clear"></div>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
    </div>
    <!--{/if}-->
    <!-- /Danh sach ban be sinh nhat -->
    <!-- Danh sach ban be co the quen -->
    <!--{if $coTheBanQuen}-->
    <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
        <div class="blocktitle title">
            <span>{lang friend_friend_might_know}</span>
            <span class="y xw0"><a href="home.php?mod=spacecp&ac=friend&op=find">{lang all}</a></span>
        </div>
        <div class="bm_l dxb_bc add_dxb_bc">
            <ul id="pfritem" class="inlinelist add_inlinelist">
            <!--{eval $cfint = 0;}-->
                <!--{loop $coTheBanQuen $key $values}-->
                
                <li id="fritem_{$key}" class="cl box_new_tv">
                	<a class="delete_p" href="javascript:;" onclick="hide_recomentfriend('fritem_{$key}')" title="Tạm thời bỏ qua">&nbsp;</a>
                    <samp class="never_a z"><a class="avt_l" href="home.php?mod=space&uid=$values[uid]" title="$values[username]" c="1"><!--{avatar($values[uid],small)}--></a></samp>
                    <samp class="never_b y">
                        <strong><a href="home.php?mod=space&uid=$values[uid]" title="$values[username]" c="1">$values[username]</a></strong>
                        <span class="add_buddy_w cl">
                        	<!--{if !is_numeric($banchung[$key])}-->
                            <a href="javascript:void(0);" style="color:#999!important;">Đang ở gần bạn</a>
                            <!--{else}-->
                            <a id="a_cfriend_$values[uid]"  onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=friend&op=getcfriend&fuid=$values[uid]&handlekey=cfrfriendhk" style="color:#999!important;">Có {$banchung[$key]} bạn chung</a>
                            <!--{/if}-->
                            <a class="addbuddy" href="home.php?mod=spacecp&ac=friend&op=add&uid=$values[uid]&handlekey=friendhk_{$values[uid]}" id="a_friend_friend_$key" onclick="showWindow(this.id, this.href, 'get', 0);" >
                                {lang add_friend}
                            </a>
                        </span>
                    </samp>
                </li>
                <!--{eval $cfint++;}-->
                
                <!--{if $cfint > 25}-->
                <!--{eval break;}-->
                <!--{/if}-->
                <!--{/loop}-->
            </ul>
        </div>
    </div>
    <!--{/if}-->
    <!-- Danh sach ban be co the quen -->
<!--{/if}-->
<!-- /Khi nguoi dung da dang nhap -->
    <!--{if $defaultusers}-->
        <!-- Ban be dc de cu -->
        <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
            <div class="blocktitle title">
                <span>{lang friends_recommended}</span>
            </div>
            <div class="bm_l dxb_bc">
                <ul class="inlinelist">
                    <!--{loop $defaultusers $key $value}-->
                    <li>
                        <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l" c="1">
                            <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                            <!--{avatar($value[uid],small)}-->
                        </a>
                        <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
    <!--{/if}-->

    <!--{if $showusers}-->
        <!-- Danh sach thanh vien dc lam noi bat -->
        <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
            <div class="blocktitle title">
                <span>{lang home_show_members}</span>
                <span class="y xw0"><a href="misc.php?mod=ranklist&type=member">{lang all}</a></span>
            </div>
            <div class="bm_l dxb_bc">
                <ul class="inlinelist">
                    <!--{loop $showusers $key $value}-->
                    <li>
                        <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l">
                            <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                            <!--{avatar($value[uid],small)}-->
                        </a>
                        <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                        <br /><br />
                        <span>{lang diem_xap_hang}: $value[credit]</span>
                        <div class="clear"></div>
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
    <!--{/if}-->
    <!--{if $newusers}-->
        <!-- Thanh vien moi tham gia -->
        <div class="bm{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
            <div class="bm_h cl">
                <h2>{lang new_join_members}</h2>
            </div>
            <div class="bm_l dxb_bc">
                <ul class="inlinelist">
                    <!--{loop $newusers $key $value}-->
                    <li>
                        <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l">
                            <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                            <!--{avatar($value[uid],small)}-->
                        </a>
                        <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                        <br /><br />
                        $value[regdate]
                        <div class="clear"></div>
                    </li>
                    <!--{/loop}-->
                </ul>
            </div>
        </div>
    <!--{/if}-->
    <!-- Anything .... -->
   
<!--{hook/space_home_side_bottom}-->
<!--{/if}-->